package com.quan.aweb.client;

import com.quan.aweb.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "bweb", url = "http://192.168.191.8:8081")
public interface bClient {
    @RequestMapping("/bweb/user/getUser")
    User getUser(@RequestParam("id") String id);
}
